package com.treasure.mall.zbq.common.ienum;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.treasure.mall.zbq.common.ienum.base.CodeDescCommonEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/6/21
 */
public interface SystemEnums {
    @AllArgsConstructor
    @Getter
    @JsonFormat(shape = JsonFormat.Shape.OBJECT)
    enum Client implements CodeDescCommonEnum {
        WECHAT_MICRO_APP(0, "微信小程序"),
        IOS(1, "IOS"),
        ANDROID(2, "安卓");

        private Integer code;
        private String desc;
    }

    /**
     * 黑名单类型
     */
    @Getter
    @AllArgsConstructor
    @JsonFormat(shape = JsonFormat.Shape.OBJECT)
    enum BlacklistType implements CodeDescCommonEnum {
        /**
         * 直播间
         */
        LIVE_ROOM(0, "直播间黑名单"),
        /**
         * 下单
         */
        CREATE_ORDER(1, "下单名单"),
        ;
        private Integer code;
        private String desc;

    }
}
